
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
    <div id="app">
      <p><button v-on:click="flag = !flag">Toggle Flag</button></p>
       <p v-if="flag">请求成功 --- 被v-if 控制</p>
       <p v-show="flag">请求成功 --- 被v-show 控制</p>
       
      
    </div>
    
    <script>
        const { createApp } = Vue
        createApp({
          data() {
            return {
              flag:false,
            }
          },
        }).mount('#app')
      </script>
</body>
</html>